//
//  WCPickerView.h
//  WCN
//
//  Created by 杨鑫 on 15/6/8.
//  Copyright (c) 2015年 ShanghaiCize Trade And Business Co., Ltd. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface WCPickerView : UIView

@property (weak, nonatomic) UILabel *titleLabel;

@property (weak, nonatomic) UIPickerView *picker;
@property (nonatomic) NSUInteger numberOfComponents;//max ,2

@property (strong, nonatomic) NSArray *pickerDataSource;
@property (strong, nonatomic) NSString *showKey;

@property (strong, nonatomic) NSDictionary *secondDataSource;
@property (strong, nonatomic) NSArray *secondPickerDataSource;
@property (strong, nonatomic) NSString *secondShowKey;

@property (copy, nonatomic) void(^close)(NSInteger index);
@property (copy, nonatomic) void(^save)(BOOL finish);

- (void)show:(UIViewController *)vc completion:(void (^)(BOOL finished))completion;

@end
